package com.lagou.edu.ioc.support;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by leon.L on 2020/1/7.
 * Desc : 需要注册到 IoC 容器中 bean 的描述信息
 */
public class BeanDefinition {

    /** bean 的全限定名称 */
    private String beanClass;

    /** 容器内 bean 实例的别名 */
    private String instanceName;

    /** 当前 bean 的所有依赖 : property name to property type. */
    private Map<String, Class<?>> dependencies = new HashMap<>();

    public String getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(String beanClass) {
        this.beanClass = beanClass;
    }

    public String getInstanceName() {
        return instanceName;
    }

    public void setInstanceName(String instanceName) {
        this.instanceName = instanceName;
    }

    public Map<String, Class<?>> getDependencies() {
        return dependencies;
    }

}
